def getDomain(url):
    spltAr = url.split("://")
    i = (0, 1)[len(spltAr) > 1]
    return spltAr[i].split("?")[0].split('/')[0].split(':')[0].lower()